export const findParent = (el, className) => {
    let nodes = null;
    let current = el.parentNode;
    while (current) {
        if(!['BODY','HTML',undefined].includes(current.tagName)){
            return current;
        }
        if(current.tagName === 'BODY') return current
        nodes = current;
        current = current.parentNode;
    }
    return nodes;
};